import { network } from '@/utils';
import { DetailParams, SetCountParams, ConfirmParams } from './data';

import { logisCenter } from '../../../../../config/Apis';

export async function queryOcrLogisDetail(params: DetailParams) {
  return network.get(logisCenter.ocr_uncheckOrder, { params });
}

export async function opertionSetCount(params: SetCountParams) {
  return network.post(logisCenter.ocr_setInventory, { data: params });
}

export async function opertionConfirm(params: ConfirmParams) {
  return network.post(logisCenter.ocr_confirm, { data: params });
}

export async function opertionBehalfConfirm(params: ConfirmParams) {
  return network.post(logisCenter.behalf_confirm, { data: params });
}
